package com.jc.platform.lijianghetong.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jc.platform.common.supers.AbstractEntity;
import com.jc.platform.lijianghetong.vo.PurchaseContractFileInfoVO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.math.*;

/**
 * ClassName PurchaseContractFileInfoEntity.java
 * Description 采购拓展表
 *
 * @author 集团管理员
 * @date 2022/01/22
 */
@Data
@TableName("purchase_contract_file_info")
@EqualsAndHashCode(of = { "id" }, callSuper = false)
public class PurchaseContractFileInfoEntity extends AbstractEntity<PurchaseContractFileInfoVO> implements Serializable
{
	private static final long serialVersionUID = 1L;

     @TableField(value = ("id"))
     private Long id;
     @TableField(value = ("business_code"))
     private String businessCode;
     @TableField(value = ("name"))
     private String name;
     @TableField(value = ("purchase_contract_id"))
     private Long purchaseContractId;

	/**
	 * 生成vo对象
	 *
	 * @return vo对象
	 */
	public PurchaseContractFileInfoVO copyToVO()
	{
        Long defaultDate = -28800000L;

		PurchaseContractFileInfoVO vo = new PurchaseContractFileInfoVO();
        vo.setId(this.id);
        vo.setBusinessCode(this.businessCode);
        vo.setName(this.name);
        vo.setPurchaseContractId(this.purchaseContractId);
		return vo;
	}

	/**
	 * 从vo对象更新属性
	 *
	 * @param vo vo对象
	 */
	public void copyFormVO(PurchaseContractFileInfoVO vo)
	{
        this.setId(vo.getId());
        this.setBusinessCode(vo.getBusinessCode());
        this.setName(vo.getName());
        this.setPurchaseContractId(vo.getPurchaseContractId());
	}
}
